package com.xltt.vehicleControl.bean;


import java.io.Serializable;

public class ServiceParameter implements Serializable {
    private String key;
    private String value;

    public ServiceParameter(){}
    public ServiceParameter(PARAMETER_KEY p1, String s2) {
        this.key = p1.getValue();
        this.value = s2;
    }

    public ServiceParameter(PARAMETER_KEY p1, PARAMETER_VALUE p2) {
        this.key = p1.getValue();
        this.value = p2.getValue();
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return this.key;
    }

    public String getValue() {
        return this.value;
    }

    public int describeContents() {
        return 0;
    }

    public enum PARAMETER_VALUE {
        RDL("rdu"),
        HORN("horn"),
        LIGHT_FLASH("light-flash"),
        HORN_LIGHT_FLASH("horn-light-flash"),
        SEAT1("front-left"),
        SEAT2("front-right"),
        SEAT3("back-left"),
        SEAT4("back-right"),
        WINDOW("window"),
        SUNROOF("sunroof"),
        ALL("all"),
        VENTILATE("ventilate"),
        RCC_STEERING("steering_wheel"),
        RCC_SEAT1("driver_seat"),
        RCC_SEAT2("passenger_seat"),
        RCC_CLIMATE("climate_control"),
        DISABLE("disable"),
        ENABLE("enable"),
        RSH_LEVEL_LOW("1"),
        RSH_LEVEL_MIDDLE("2"),
        RSH_LEVEL_HIGH("3"),
		//以下为v2添加
        LOCK_TRUNK("trunk"),
        LOCK_ENGINE_LID("hood"),
        LOCK_FUEL_LID("tank-flag"),
        LOCK_BACK_CHARGE_LID("back-charge-lid"),
        LOCK_FRONT_CHARGE_LID("front-charge-lid"),
        LOCK_PRIVATE("private-lock"),


        RCC_ZERO("0"),

        WIN_SUNSHADE("sunshade"),
        WIN_VENTILATE("ventilate");

        private String value;

        PARAMETER_VALUE(String value) {
            this.value = value;
        }

        public String getValue() {
            return this.value;
        }
    }

    public enum PARAMETER_KEY {

        RTU("rtu"),
        RDL("rdu"),
        RES("res"),
        RHL("rhl"),
        RWS("rws"),
        RCE("rce"),
        RSH_SEAT("rsh.seat"),
        RSH_LEAVEL("rsh.level"),
        RPC("rpc"),
        JOU("jou"),
        RCC_TARGET("rcc.target"),
        RCC_TEMP("rcc.temp"),
        RCC_LEVEL("rcc.level"),
        RDU_TIME("time.window"),

		//以下为v2添加
        RSM("rsm"),
        DOOR("door"),
        TARGET("target"),
        PASSWORD("password"),

        POS("pos"),

        TASTE("taste"),
        LEVEL("level"),
        CODE("code"),

        RCE_TEMP("rce.temp"),
        RCE_LEVEL("rce.level"),
        RCE_CONDITIONER("rce.conditioner"),
        RCE_HEAT("rce.heat"),
        RCE_VENTILATION("rce.ventilation"),
        RCE_TIMERID("rce.timerId"),
        RCE_DAYOFWEEK("rce.dayofWeek"),
        RCE_STARTTIMEOFDAY("rce.startTimeofDay"),
        RCE_ENDTIMEOFDAY("rce.endTimeofDay"),
        RCE_TIMER_ACTIVATION("rce.timerActivation"),
        RCC_HEAT("rcc.heat"),
        RCC_VENTILATION("rcc.ventilation"),
        RCC_TIMERID("rcc.timerId"),
        RCC_DAYOFWEEK("rcc.dayofWeek"),
        RCC_STARTTIMEOFDAY("rcc.startTimeofDay"),
        RCC_ENDTIMEOFDAY("rcc.endTimeofDay"),
        RCC_TIMER_ACTIVATION("rcc.timerActivation"),
        RCC_VENTILATIONOPTIONAL("rcc.ventilationoptional"),

        //SOC设置
        SOC("soc"),
        ALT_CURRENT("altCurrent"),
        RCS_SETTING("rcs.setting"),
        RCS_RESTART("rcs.restart"),
        RCS_TERMINATE("rcs.terminate"),
        OPERATION("operation");

        private String value;

        PARAMETER_KEY(String value) {
            this.value = value;
        }

        public String getValue() {
            return this.value;
        }
    }
}
